from sqlalchemy import Column, Integer, String, ForeignKey
from orm_learning.advanced_orm_learning.model import Base


class UserPermissions(Base):
    __tablename__ = 'user_permissions'

    user_id = Column(Integer, ForeignKey('users.id'), primary_key=True)
    permission_id = Column(Integer, ForeignKey('permissions.id'), primary_key=True)